let message: string = 'hello typescript'

function foos(payload: string) {
  console.log(payload.length)
}

// foos(123)

foos('123')